package com.qzh;

import cn.hutool.core.util.IdUtil;
import com.qzh.G.Item;
import com.qzh.G.base.Attack;
import com.qzh.G.base.AttackResult;
import com.qzh.G.base.Player;
import com.qzh.G.constants.Equips;
import com.qzh.G.utils.RandomUtil;
import com.qzh.baseStruct.UnlimitQueue;
import com.qzh.utils.Sort;

import java.math.BigDecimal;
import java.util.ArrayList;

import static com.qzh.G.constants.Items.低阶恢复药;

public class test {

    public static void main(String[] args) {
        UnlimitQueue<String> unlimitQueue =new UnlimitQueue<>("first");
        for (int i = 0; i < 10; i++) {
            unlimitQueue.add("序号:"+i);
        }
        for (int i = 0; i < 5; i++) {
            unlimitQueue.pop();
        }
        unlimitQueue.size();
        int[]data = {2,3,5,1,9,8,7};
            Sort.InsertSort(data);
            data.hashCode();

        Player player = new Player();
        player.setHp(BigDecimal.valueOf(500));
        player.setChr(BigDecimal.valueOf(0.2));
        player.setChd(BigDecimal.valueOf(2));
        player.setBase_chr(BigDecimal.valueOf(0.2));
        player.setBase_chd(BigDecimal.valueOf(2));
        player.setDefend(BigDecimal.valueOf(100));
        player.setBaseDefend(BigDecimal.valueOf(100));
        player.setAttack(BigDecimal.valueOf(100));
        player.setBaseAttack(BigDecimal.valueOf(100));
        player.setDamageRate(BigDecimal.valueOf(0));
        player.setReduceRate(BigDecimal.valueOf(0));
        player.setBase_dodge_rate(BigDecimal.valueOf(0.1));
        player.setDodge_rate(BigDecimal.valueOf(0.1));
        player.setBase_hpLimit(BigDecimal.valueOf(1000));
        player.setHpLimit(BigDecimal.valueOf(1000));
        player.equip(Equips.test);
        player.unEquip(Equips.test);
        player.equip(Equips.test);
        Item 低阶恢复药1 = 低阶恢复药;
        低阶恢复药1.setUuid(IdUtil.fastUUID());
        Item 低阶恢复药2 = 低阶恢复药;
        低阶恢复药1.setUuid(IdUtil.fastUUID());
        player.addItemToBox(低阶恢复药1);
        player.addItemToBox(低阶恢复药2);
        player.useItemToBox(低阶恢复药1);
        player.hashCode();

      double r1 =   RandomUtil.RandomBetween(333,1000);
        double r2 =   RandomUtil.RandomBetween(333,1000);
        double r3 =   RandomUtil.RandomBetween(333,1000);



    }

}

